package com.ruoyi.plus.pub.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 系统公告通知接收人对象 pub_notice_receiver
 *
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@TableName("pub_notice_receiver")
public class PubNoticeReceiver extends BaseEntity implements Serializable{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id")
    private Long id;

    /** 公告通知id */
    @Excel(name = "公告通知id")
    @TableField(value = "notice_id")
    private Long noticeId;

    /** 接收者id */
    @Excel(name = "接收者id")
    @TableField(value = "user_id")
    private Long userId;

    /** 是否已读标识 1 已读 2 未读 */
    @Excel(name = "是否已读标识: 0 未读,1 已读 ")
    @TableField(value = "read_status")
    private String readStatus;

    /** 状态 1 未发布, 2 已发布, 3 已撤销 */
    @Excel(name = "状态 1 未发布, 2 已发布, 3 已撤销")
    @TableField(value = "notice_status")
    private String noticeStatus;

    /** 生效时间 */
    @Excel(name = "生效时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "notice_start_time")
    private Date noticeStartTime;

    /** 截止时间 */
    @Excel(name = "截止时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "notice_end_time")
    private Date noticeEndTime;

    @Excel(name = "系统类型")
    @TableField(value = "system_type")
    private String systemType;


}
